//
//  ThirdViewController.m
//  UI-02 Homework 完成登录-注册-忘记密码
//
//  Created by 冀永金 on 16/7/15.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "ThirdViewController.h"

@interface ThirdViewController ()

@end

@implementation ThirdViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self configSubViews];
    // Do any additional setup after loading the view.
}
- (void)configSubViews {
    UIButton *buttonOfBack = [UIButton buttonWithType:UIButtonTypeSystem];
    [self.view addSubview:buttonOfBack];
    buttonOfBack.frame = CGRectMake(10, 10, 100, 60);
    [buttonOfBack setTitle:@"< 返回" forState:UIControlStateNormal];
    [buttonOfBack setTitleColor: [UIColor colorWithRed:0.24 green:0.74 blue:0.61 alpha:1.00]forState:UIControlStateNormal];
    buttonOfBack.titleLabel.font = [UIFont systemFontOfSize:23];
    buttonOfBack.titleLabel.font = [UIFont boldSystemFontOfSize:20];
    [buttonOfBack addTarget:self action:@selector(handleBack:) forControlEvents:UIControlEventTouchUpInside];
    // 验证手机
    UILabel *labelOfChecking = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 200, 80)];
    [self.view addSubview:labelOfChecking];
    labelOfChecking.center = CGPointMake(self.view.frame.size.width / 2 + 50, 100);
    labelOfChecking.text = @"验证手机";
    labelOfChecking.textColor = [UIColor blackColor];
    labelOfChecking.font = [UIFont systemFontOfSize:25];
    // 手机号输入框
    UITextField *textFieldOfPhone = [[UITextField alloc]initWithFrame:CGRectMake(50, 140, 300, 40)];
    [self.view addSubview:textFieldOfPhone];
    textFieldOfPhone.placeholder = @"手机号（仅支持中国大陆号）";
    textFieldOfPhone.font = [UIFont systemFontOfSize:20];
    UIImageView *imageOfPhone = [[UIImageView alloc]initWithFrame:CGRectMake(20, 145, 20, 30)];
    imageOfPhone.image = [UIImage imageNamed:@"Unknown-2.png"];
    [self.view addSubview:imageOfPhone];
    UIView *viewOfPhone = [[UIView alloc]initWithFrame:CGRectMake(20, 180, 370, 2)];
    [self.view addSubview:viewOfPhone];
    viewOfPhone.backgroundColor = [UIColor lightGrayColor];
    // 验证码输入框
    UITextField *textFieldChecking = [[UITextField alloc]initWithFrame:CGRectMake(50, 190, 200, 40)];
    [self.view addSubview:textFieldChecking];
    textFieldChecking.placeholder = @"验证码";
    textFieldChecking.font = [UIFont systemFontOfSize:20];
    UIImageView *imageOfChecking = [[UIImageView alloc]initWithFrame:CGRectMake(20, 195, 20, 30)];
    imageOfChecking.image = [UIImage imageNamed:@"Unknown-1.png"];
    [self.view addSubview:imageOfChecking];
    UIView *viewOfChecking = [[UIView alloc]initWithFrame:CGRectMake(20, 230, 370, 2)];
    [self.view addSubview:viewOfChecking];
    viewOfChecking.backgroundColor = [UIColor lightGrayColor];
    UIButton *createButton = [UIButton buttonWithType:UIButtonTypeSystem];
    [self.view addSubview:createButton];
    createButton.frame = CGRectMake(250, 190, 100, 40);
    [createButton setTitle:@"获取验证码" forState:UIControlStateNormal];
    [createButton setTitleColor:[UIColor colorWithRed:0.00 green:0.69 blue:0.53 alpha:1.00] forState:UIControlStateNormal];
    createButton.titleLabel.font = [UIFont systemFontOfSize:20]
    ;
    UIButton *buttonNext = [UIButton buttonWithType:UIButtonTypeSystem];
    [self.view addSubview:buttonNext];
    buttonNext.frame = CGRectMake(20, 250, 370, 50);
    [buttonNext setTitle:@"下一步" forState:UIControlStateNormal];
    buttonNext.backgroundColor = [UIColor colorWithRed:0.11 green:0.70 blue:0.55 alpha:1.00];
    buttonNext.titleLabel.font = [UIFont systemFontOfSize:22];
    [buttonNext setTitleColor:[UIColor colorWithRed:0.29 green:0.78 blue:0.66 alpha:1.00] forState:UIControlStateNormal];
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(30, 310, 180, 40)];
    [self.view addSubview:label];
    label.text = @"邮箱用户找回密码，请";
    label.textColor = [UIColor colorWithRed:0.69 green:0.69 blue:0.69 alpha:1.00];
    label.font = [UIFont systemFontOfSize:18];
    UIButton *clickButton = [UIButton buttonWithType:UIButtonTypeSystem];
    clickButton.frame = CGRectMake(200, 310, 90, 40);
    [self.view addSubview:clickButton];
    [clickButton setTitle:@"点击这里" forState:UIControlStateNormal];
    [clickButton setTitleColor:[UIColor colorWithRed:0.22 green:0.74 blue:0.61 alpha:1.00] forState:UIControlStateNormal];
    clickButton.titleLabel.font = [UIFont systemFontOfSize:18];
    
    
}
- (void)handleBack:(UIButton *)button {
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
